#include <stdio.h>
#define M 81
int main(){
	int i = 0;
	int num = 0;
	char s[M];
	gets(s);
	while(s[i]!='\0'){
		if(s[i]>='0'&&s[i]<='9'){
			num=10*num+(int)s[i]-(int)'0';
		}i++;
		 
	}printf("%d",num);
	return 0;
}
